procedure CalcStats(dataName : Str255);
Calculates the statistics of the data window.  The results are placed in the internal real array as follows:

    longintArray[1] := X location of Maximum;
    longintArray[2] := Y location of Maximum;
    longintArray[3] := number of points;

    realArray[1] := max;
    realArray[2] := min;
    realArray[3] := sum;
    realArray[4] := ave;
    realArray[5] := var;
    realArray[6] := skew;
    realArray[7] := kurt;
    realArray[8] := rms;

Also see:  Histogram  GetRIndex